home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / dsp / srffttar.z / srffttar / SRFFT / makefile.MSDOS < prev    next >
Makefile  |  1991-08-26  |  2KB  |  107 lines

  1. # Makefile for msdos using microsoft c and masm.
  2. #
  3. #
  4.  
  5. CFLAGS= -Oint -Gs -AL
  6. LIBS=
  7.  
  8. all:    progs tests
  9. progs:    fftgc.exe fftgf.exe fftga.exe
  10. fft:    fft256c.obj fft256f.obj fftsubs.obj fft256a.obj
  11. tests:    fft2c.exe fft2f.exe fft2a.obj
  12.  
  13. #
  14. # The generator programs
  15. #
  16.  
  17. fftgc.exe:    fftg.obj fftoutc.obj
  18.     cl -Fefftgc fftg.obj fftoutc.obj $(LIBS)
  19.  
  20. fftgf.exe:    fftg.obj fftoutf.obj
  21.     cl -Fefftgf fftg.obj fftoutf.obj $(LIBS)
  22.  
  23. fftga.exe:    fftg.obj fftouta.obj
  24.     cl -Fefftga fftg.obj fftouta.obj $(LIBS)
  25.  
  26. #
  27. # generated files
  28. #
  29.  
  30. fft256c.obj:    fft256c.c fftsubs.h
  31.     cl -c $(CFLAGS) fft256c.c
  32.  
  33. fft256c.c:    fftgc.exe
  34.     fftgc fft256c 8 fft
  35.  
  36. fft256f.obj:    fft256f.c
  37.     cl -c $(CFLAGS) fft256f.c
  38.  
  39. fft256f.c:    fftgf.exe
  40.     fftgf fft256f 8 fft
  41.  
  42. fft256a.obj:    fft256a.asm fftouta.mac
  43.     masm /Ml fft256a,,NUL,NUL;
  44.  
  45. fft256a.asm:    fftga.exe
  46.     fftga fft256s 8 fft
  47.  
  48. #
  49. # test programs
  50. #
  51.  
  52. fft2c.exe:    fft2.obj fft256c.obj
  53.     cl -Fefft2c fft2.obj fft256c.obj $(LIBS)
  54.  
  55. fft2f.exe:    fft2.obj fft256f.obj fftsubs.obj
  56.     cl -Fefft2f fft2.obj fft256f.obj fftsubs.obj $(LIBS)
  57.  
  58. fft2a.exe:    fft2.obj fft256a.obj
  59.     cl -Fefft2s fft2.obj fft256a.obj
  60.  
  61. #
  62. # cut a tar file
  63. #
  64.  
  65. tar:        ffttar.uue
  66.  
  67. ffttar.uue:    fft_tar.Z
  68.     uue fft_tar.Z >ffttar.uue
  69.  
  70. fft_tar.Z:    fft_tar
  71.     compress fft_tar
  72.  
  73. FFTPROGS= fftg.c fftoutf.c fftoutc.c fftsubs.c fftsubs.h
  74. FFTASM= fftouts.c fftouta.c fftouta.mac
  75. TESTS= fft2.c fft256c.c fft256f.c
  76. DATA= data1.fft data2.fft
  77. MISC= makefile README MANIFEST
  78. TAR= $(FFTPROGS) $(TESTS) $(DATA) $(MISC)
  79.  
  80. fft_tar:    $(TAR)
  81.     tar cvf fft_tar $(TAR)
  82.  
  83. #
  84. # cut an arc file
  85. #
  86.  
  87. arc:        fftarc.uue
  88.  
  89. fftarc.uue:    fft.arc
  90.     uue fft.arc >fftarc.uue
  91.  
  92. fft.arc:    $(TAR)
  93.     del fft.arc
  94.     pkarc -a fft $(FFTPROGS)
  95.     pkarc -a fft $(TESTS)
  96.     pkarc -a fft $(DATA)
  97.     pkarc -a fft $(MISC)
  98.  
  99. #
  100. # temp progs to test machine instruction timing in a tight loop.
  101. #
  102.  
  103. loop.obj:    loop.s
  104.  
  105. speed:    speed.obj loop.obj
  106.     cc -o speed speed.obj loop.obj
  107.